package com.light.roller;

import org.anddev.andengine.engine.Engine;

import android.content.Intent;

import com.badlogic.gdx.math.Vector2;

public class Roller_test extends Roller{
	
	@Override
	public Engine onLoadEngine() {
		
		Vector2 cameraCenter = new Vector2(52, 350);
		Vector2 playerInitialPositon = new Vector2(52,350);
		Vector2 doorPosition = new Vector2(627,370);
		stage = new Stage_test(this);
		stage.onLoadEngine();
		Engine engine = initialize(cameraCenter, playerInitialPositon,doorPosition, Direction.UP);
		
		
		return engine;
	}
	
	public void reset()
	{
		ResourceManager.unLoadAllSounds();
		stage.removeStoper(scene, physicsWorld);
		this.finish();
		this.startActivity(new Intent(this, Roller_test.class));
		
	}

}
